import { Button, Form } from "antd";
import React, { useState } from "react";
import "react-quill/dist/quill.snow.css";

import ReactQuill, { Quill } from "react-quill";
import Fenye from "@/components/Fenye";

export default function Fulltext() {
   const [page, setPage] = useState(1);

   //子传父是函数
  // const test = (value: number) => {
  //   console.log("fuchuanzi", value);
  //   // onClick()=>{
  //   //   setPage(2);
  //   // }
  //   setPage(2);
  // };

  return (
    <div>
      {/* <Form.Item label="内容" name="content">
    <ReactQuill> 
    </ReactQuill>
      </Form.Item> */}

       {/* <Button>{page}</Button> */}
     <div>
       <Button onClick={()=>{
      setPage(page+1);
     
      
    }}>
      哈哈哈我会父传子了
    </Button> 
    </div>
      <Fenye page={page}  total={60}></Fenye>   
      {/* click={test}  */}

      
    </div>
  );
}
